package com.anson.spring_demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author yinyansheng
 */
@Service
public class HelloService {

    @Value("${name}")
    private String name;

    public String hello() {
        return "hello";
    }
}
